package org.javacourse.main;

import org.javacourse.service.CustomerService;
import org.javacourse.service.ProductService;
import org.javacourse.entity.Product;
import org.javacourse.entity.SelectedProduct;
import org.javacourse.entity.Customer;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: tania.luchin
 * Date: 4/12/13
 * Time: 10:52 AM
 * To change this template use File | Settings | File Templates.
 */
public class MainClass {

    public static void main(String ... args){
        //ProductService productService = new ProductService();
        //Product product = productService.getProductById(3);
        ProductService productService = new ProductService();
        List<Product> product = productService.getAllProducts();

        for (Product pr: product){
            System.out.println(pr.getName());
        }
        //System.out.println(customer.getSelectedProducts());
    }


}
